﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<TireBias.Models.KANBANPlanModel.KANBANPlan_DS>" %>


<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">

</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <style type="text/css">
.cell
{
   line-height:35px !important;
 
}
.col
{ font-weight:bolder;
  
   padding: 7px 0px 7px 100px !important; 
   width: 50% !important; 
   text-align: left !important;
   background-color:#ccc !important;
}
</style>
<%
    var srcPDF = Url.Action("GetPDF_INF") + "?code=" + Model._topcrdcd + "&sizes=" + Model._sizes + "&forming=" + Model._forming;
    
%>



<table class="shadow" style=" width: 98%">
      <% if (WinNemoLib.StrUtil.IsNotEmpty(Model._Text))
         {%>
      <tr>
         <td class="cell" style="font-size: x-large;line-height: 30px; 
            padding: 5px; background-color: #C38DEC; color:White"  colspan="2">
            <%= Model._Text%>
         </td>
      </tr>
      <%} %>
      <tr class="rowb">
         <td class="head cell text-right" style="vertical-align: top; width:50%">                    
                <iframe src='<%=srcPDF%>' height="900px" width="100%"></iframe>
         
         </td>
         <td style="vertical-align:top;">
  
            <table width="100%" style="height:100%">
            <tr> 
<td class="col cell" style="padding: 10px 0px; width: 25%;">
DATE-SEQ
<span class="fontTh">ล็อตที่ผลิต</span>
</td>
<td class="cell" id="seqDT">
<h3><%= Model._plandt %>-<%=Model._itemno %></h3>  
</td>
</tr>
 <tr class="rowb">
         <td class="col cell" style="padding: 10px 0px; width: 25%;">
            SIZE
            <span class="fontTh">ขนาดผ้าใบ</span>
         </td>
         <td class="cell" id="Td1">
         <h3> <%= Model._sizes %></h3>  
         </td>
      </tr>
      <tr class="rowb">
         <td class="col cell" style="padding: 10px 0px; width: 25%;">
            FORMING
           
            <span class="fontTh">เครื่องที่สร้าง</span>
         </td>
         <td class="cell" id="Td2">
        <h3>   <%= Model._forming %></h3> 
         </td>
      </tr>
     
      <tr class="rowb">
         <td class="col cell" style="padding: 10px 0px; width: 25%;">
            Topped Cord
            
            <span class="fontTh">ผ้าใบ</span>
         </td>
         <td class="cell" id="Td7">
         <h3>  <%= Model._topcrdcd %></h3> 
         </td>
      </tr>
      <tr class="rowb">
         <td class="col cell" style="padding: 10px 0px; width: 25%;">
            Tire Cord Lot
         
            <span class="fontTh">ผ้าใบ</span>
         </td>
         <td class="cell" id="Td8">
         <h3>  <%= Model._Tcrdlot %></h3> 
         </td>
      </tr>      
      <tr class="rowb">
         <td class="col cell" style="padding: 10px 0px; width: 25%;">
           Expired date
       
            <span class="fontTh">วันหมดอายุ</span>
         </td>
         <td class="cell">
         <h3>  <%= Model._topexp %></h3> 
         </td>
      </tr>
      <tr class="rowb">
         <td class="col cell" style="padding: 10px 0px; width: 25%;">
         Length (M.)
            
            <span class="fontTh">ความยาว(เมตร)</span>
         </td>
         <td class="cell" >
         <h3>  <%= Model._toplen %></h3> 
         </td>
      </tr>

            <% if (WinNemoLib.StrUtil.IsNotEmpty(Model._P1))
         { %>
      <tr class="rowb">
         <td class="col cell" style="padding: 10px 0px; width: 25%;">
            P1
          
            <span class="fontTh">ความยาวผ้าใบชั้นที่ 1 (มม.)</span>
         </td>
         <td class=" cell" id="Td3">
     <h3>  <%= Model._P1%></h3>     
         </td>
      </tr>
      <% } %>
      <% if (WinNemoLib.StrUtil.IsNotEmpty(Model._P2))
         { %>
      <tr class="rowb">
         <td class="col cell" style="padding: 10px 0px; width: 25%;">
            P2
            
            <span class="fontTh">ความยาวผ้าใบชั้นที่ 2 (มม.)</span>
         </td>
         <td class="cell" id="Td4">
        <h3>   <%= Model._P2%></h3> 
         </td>
      </tr>
      <% } %>
      <% if (WinNemoLib.StrUtil.IsNotEmpty(Model._P3))
         { %>
      <tr class="rowb">
         <td class="col cell" style="padding: 10px 0px; width: 25%;">
            P3
         
            <span class="fontTh">ความยาวผ้าใบชั้นที่ 3 (มม.)</span>
         </td>
         <td class="cell" id="Td5">
           <h3> <%= Model._P3%></h3>
         </td>
      </tr>
      <% } %>
      <% if (WinNemoLib.StrUtil.IsNotEmpty(Model._P4))
         { %>
      <tr class="rowb">
         <td class="col cell" style="padding: 10px 0px; width: 25%;">
            P4
          
            <span class="fontTh">ความยาวผ้าใบชั้นที่ 4 (มม.)</span>
         </td>
         <td class="cell" id="Td6">
          <h3> <%= Model._P4%></h3> 
         </td>
      </tr>
      <% } %>
    <tr style="text-align: center; font-size: 6em; font-weight: bolder;  line-height: 150px;" class="head">
                  <td id="ply1" style="border:2px solid black !important;"  >
                      <%= Model._TmpP1 %>
                     </td>
                  <td id="ply2" style="border:2px solid black !important;" >
                     <%= Model._TmpP1 %>
                  </td>
               </tr>

               <tr class="rowb">
         <td class="col cell" style="padding: 10px 0px; width: 25%;">
           Standard Update
         </td>
         <td class="cell">
         <%= Model._fileINFModifyBy %><br />
         <%= Model._fileINFModifyDT %>
         </td>
         </tr>
         <tr>
            <td class="col cell" style="padding: 10px 0px; width: 25%;">
           Valid
         </td>
         <td class="cell">
        <%= Model._INFvalid %>
         </td>
      </tr>
         <tr>
            <td style="text-align:right; padding-right:20px;" colspan="2">
          <input type="button" id="next_std" value="NEXT" class="btnFooter"  
              style="height: 75px;  width: 350px;" /></td>
      </tr>
     </table>            
            </td>
      </tr>
   </table>


</asp:Content>


<asp:Content ID="Content3" ContentPlaceHolderID="FeaturedContent" runat="server">
    <section class="featured">
 <div class="content-wrapper" style="height:40px">
            <hgroup class="title float-left">
            <h1>Bias Head Computer</h1>
                <h2  style="padding-left:55px;">BIAS NO.<%: Model._biasno %></h2>      
           
            </hgroup> 
             <hgroup class="title float-right">
                <h3>
         Name :
         <% if (Request.IsAuthenticated)
            { %>
         <%:  User.Identity.Name %>
         <% } %></h3>
            </hgroup>   
 </div>
 </section>
</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderID="TableContent" runat="server">
    <div class="float-right" style="margin-right: 50px;">
          &nbsp;</div>
</asp:Content>

<asp:Content ID="Content5" ContentPlaceHolderID="ScriptsSection" runat="server">
    <% if (false)
   { %>
<script src="../../Scripts/jquery-1.7.2.js" type="text/javascript"></script>
<% } %>
<script type="text/javascript">
    $(function () {
        $("#next_std").click(function () {

            var getUsersUrl = '<%= Url.Action("GET_PDF_STD","BiasHead_Kanban") %>' + '?seq=' + '<%= Model._plandt %>' + '-' + '<%=Model._itemno %>' + '&biasno=' + '<%: Model._biasno %>' + '&shift=' + '<%: Model._shift %>';
            getUsersUrl = getUsersUrl + "&subItem=" + '<%=  Model._subItem%>' + "&Information=1";
            window.location = getUsersUrl;
        });
    })
 </script>
</asp:Content>
